<{include file="header.htm"}>
<div id="login">
<{if isset($smarty.session.login)}>
<{$smarty.session.nickname}>(<{$smarty.session.login}>) 你好。<a href="?action=logout">登出</a>
<{if $smarty.session.provider != 'native'}><a href="connect.php">連接帳號</a><{/if}>
<{else}>
<h2>登入</h2>
<div id="native">
<form action="?type=native" method="post">
<label>帳號</label><input name="username" maxlength="15" /><br />
<label>密碼</label><input name="password" type="password" /><br />
<input class="submit" value="登入" type="submit" />
</form>
</div>
<div id="fed">
用其他帳號登入<br />
<{section name=i loop=$thirdParty}>
<a href="?type=thirdParty&provider=<{$thirdParty[i]}>"><img alt="Login as <{$thirdParty[i]}>" src="site_media/images/login_btn/<{$thirdParty[i]}>.gif" /></a>
<{/section}>
</div>
<{/if}>
</div>
<{include file="footer.htm"}>
